package com.easytopit.observer;

import java.util.LinkedList;
import java.util.List;

public class Subject {
	private List<Observer> list = new LinkedList<Observer>();

	public void addObserver(Observer observer) {
		list.add(observer);
	}
	
	public void notifyA(String name) {
		for (Observer observer : list) {
			observer.execute(name);
		}
	}
}
